﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Clauses
{
    public class OrderingTerm
        : Expression, IOrderingTerm
    {
        public OrderingTerm(IColumnName column)
            : this(column, Direction.Ascending)
        {
        }

        public OrderingTerm(IColumnName column, Direction direction)
            : base(new List<IExpression>{column, direction})
        {
        }

        public OrderingTerm(IColumnName column, Direction direction, CollationName collationName)
            : base(new List<IExpression>{column, direction, collationName})
        {
        }
    }
}
